package oop2;

import java.util.Arrays;

public class StuTest {

	public static void main(String[] args) {
		// int[] a1 = { 1, 3, 5, 6 };
		// int[] a2 = a1;
		// a2[0] = 99;
		// System.out.println(Arrays.toString(a1));
		Student[] stu = new Student[10];
		System.out.println(stu[0]);
		stu[0] = new Student();
		stu[0].name = "桂群";
		stu[0].java = 90;
		stu[0].music = 91;
		stu[0].show();
		Student s2 = new Student();
		s2.name = "杨巧巧";
		s2.java = 92;
		s2.music = 92;
		stu[1] = s2;
		stu[1].show();

		Student[] stu3 = { new Student(), new Student(), null };
		// Student[] stu2 = new Student[10];
		// for(int i=0;i<stu2.length;i++){
		// stu2[i]=new Student();
		// }
	}

}
